<template>
    <el-container>
        <el-header>
          <!--导航栏-->
          <MyNav></MyNav>
        </el-header>
        <el-main>
          <!--子页面路由出口-->
          <router-view></router-view>
        </el-main>
    </el-container>
</template>

<script>
import MyNav from './MyNav.vue'

export default {
    name: 'MyMain',
    components: {
        MyNav
    }
}
</script>

<style>

.el-header {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    line-height: 40px;
  }
  
  
  .el-main {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    line-height: 150px;
    height: 667px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>